/*
 * Copyright 2008-2015 GuanAiHui inc. 
 */
package com.pretty.adminapp.pojo.model.um;

import com.pretty.adminapp.pojo.base.AutoIdBaseEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Department:
 *
 * @author Dennis Ge
 */
@Entity
@Table(name = "um_department")
@DynamicInsert
@DynamicUpdate
public class Department extends AutoIdBaseEntity {

	@Column(name = "name")
	private String name;

	@Column(name = "parent_id")
	private Long parentId;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	@Override
	public String toString() {
		return "Department [name=" + name + ", parentId=" + parentId + "]";
	}



}
